import instance from '@/utils/http'
/**
 * @description 获取商品列表
 * @param {*} Object {page,limit,category1Id,category2Id}
 */
export const getGoodsList = ({
  page,
  limit,
  category1Id,
  category2Id
}) => instance.request({
  url: `/goods/list/${page}/${limit}`,
  params: {
    category1Id,
    category2Id
  }
})
/**
 * @description 获取商品详情
 * @param {*} goodsId String
 */
export const getGoodsDetail=(goodsId)=>instance.request({
  url:`/goods/${goodsId}`
})